import request from '@/utils/request'

// 排班管理列表渲染
export const getRowClassInfo = (params) => {
  return request({
    method: 'get',
    url: '/work-schedulings',
    params
  })
}
// 工作模式
export const workingMode = (params) => {
  return request({
    method: 'get',
    url: '/work-patterns/all',
    params
  })
}
// 排班设置
export const shiftSetting = () => {
  return request({
    method: 'get',
    url: '/work-patterns/page'
  })
}
// 根据工作模式id获取工作模式详情
export const workingModeId = (id) => {
  return request({
    method: 'get',
    url: `/work-patterns/${id}`
  })
}
// 修改工作模式
export const workingModeType = (params) => {
  return request({
    method: 'put',
    url: '/work-patterns',
    params
  })
}

// 删除工作模式
export const DelworkingModeType = (id) => {
  return request({
    method: 'delete',
    url: `/work-patterns/${id}`

  })
}
// 新增工作模式
export const AddworkingModeType = (params) => {
  return request({
    method: 'post',
    url: '/work-patterns',
    params

  })
}
// 人工调整

export const manualAdjustment = (params) => {
  return request({
    method: 'put',
    url: '/work-schedulings',
    params

  })
}
